package br.com.sotec.soerp;

import br.com.sotec.lotus.core.beans.ChaveValor;
import br.com.sotec.lotus.core.service.ConsultasBaseService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author glauco
 */
public class Main {

    public static void main(String args[]) {

        ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:applicationContext.xml");
        System.out.println(context.getApplicationName());
        ConsultasBaseService cb = (ConsultasBaseService) context.getBean("consultasBase");

        for (ChaveValor chaveValor : cb.getPaises()) {
            System.out.println(chaveValor.getChave());
            System.out.println(chaveValor.getValor());
        }
        System.out.println("Parou");
    }

}
